package net.xiduth.game.player.dialogues.impl;

import net.xiduth.game.WorldTile;
import net.xiduth.game.player.dialogues.Dialogue;

/**
 * 
 * @author Jae
 * 
 * Handles Hole to Saradomin realm.
 *
 */

public class Hole extends Dialogue {

	@Override
	public void start() {
		stage = 1;
		if (stage == 1) {
			sendOptionsDialogue("Are you sure you would like to use this?",
					"Yes please.",
					"No thanks.");
			stage = 1;
	}
	}

	public void run(int interfaceId, int componentId) {
		if (stage == 1) {
			if (componentId == OPTION_1) {
				player.move(new WorldTile(2913, 5272, 0));
				player.sm("You find a shortcut!");
				end();
				player.getInterfaceManager().closeChatBoxInterface();
			}
			if (componentId == OPTION_2) {
				stage = 2;				
		}
		}
		if (stage == 2) {
			end();
			player.getInterfaceManager().closeChatBoxInterface();
		}
	}
	
	@Override
	public void finish() {

	}

}